package com.biz.primus.model.member.enums;

import com.biz.primus.common.enums.EnumerableValue;
import com.biz.primus.common.enums.converter.BaseEnumValueConverter;

/**
 * 类说明：符号类型
 *
 * @author jun.liu
 */
public enum SymbolTypes implements EnumerableValue
{

    LT(0, "小于"),
    GT(1, "大于"),
    EQ(2, "等于"),
    LTEQ(3, "小于等于"),
    GTEQ(4, "大于等于"),
    ;

    public static class Converter extends BaseEnumValueConverter<SymbolTypes>
    {
    }

    private int value;
    private String desc;

    SymbolTypes(int value, String desc)
    {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public int getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }

    public static SymbolTypes getEducationByValue(int codeVal)
    {
        for (SymbolTypes education : SymbolTypes.values())
        {
            if (education.getValue() == codeVal)
            {
                return education;
            }
        }
        return null;
    }


}

